package com.d0309;

public class Penguin extends Bird {
    public int age=20;
    public void foo(){
        System.out.println("子类的方法");
    }
    //alt+insert
    @Override
    public void move() {
        super.move();
        System.out.println("企鹅移动");
        //System.out.println(age);
        //System.out.println(super.age);
    }
    public void show(){
        System.out.println("向下造型");
    }
}
